<?php

namespace YmPhp\Admin\Models\Member;

use YmPhp\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use YmPhp\Admin\Models\BasicModel;

class MemberList extends BasicModel
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'member';
    protected $primaryKey = 'uid';
    protected $hidden = ['password'];

    public function getDetails($uid){
        return $this->where('uid',$uid)->first();

    }

    public function getLists(){
        $list = self::where('status','<',2)->orderBy('uid')->get();
        return $list;
    }

}
